package it.traveldream.entities;

import java.io.Serializable;
import java.lang.String;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: User
 *
 */
@Entity
@Table(name="User")
@Inheritance
@DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING) 
public abstract class User implements Serializable {

	@Id
	private String userName;
	private String pwdHash;
	private String mail;
	private static final long serialVersionUID = 1L;
	
	public User() {
		super();
	}   
	
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}   
	public String getPwdHash() {
		return this.pwdHash;
	}

	public void setPwdHash(String pwdHash) {
		this.pwdHash = pwdHash;
	}   
	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}
   
}
